package cn.ch.train.generator.util;


/**
 * 每个字段的信息
 */
public class Field {

    /**
     * 字段名：比如course_id
     */
    public String name;
    /**
     * 字段名-小驼峰：courseId
     */
    public String nameHump;
    /**
     * 字段名-大驼峰：CourseId
     */
    public String nameBigHump;
    /**
     * 字段中文名：课程id
     */
    public String nameCn;
    /**
     * 字段类型：char(8)
     */
    public String type;
    /**
     * Java类型：String
     */
    public String javaType;
    /**
     * 注释：课程id
     */
    public String comment;
    /**
     * 是否可空：false
     */
    public Boolean nullAble;
    /**
     * 字符串长度：8
     */
    public Integer length;
    /**
     * 是否是枚举：false
     */
    public Boolean enums;
    /**
     * 枚举常量：COURSE_LEVEL
     */
    public String enumsConst;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNameHump() {
        return nameHump;
    }

    public void setNameHump(String nameHump) {
        this.nameHump = nameHump;
    }

    public String getNameBigHump() {
        return nameBigHump;
    }

    public void setNameBigHump(String nameBigHump) {
        this.nameBigHump = nameBigHump;
    }

    public String getNameCn() {
        return nameCn;
    }

    public void setNameCn(String nameCn) {
        this.nameCn = nameCn;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getJavaType() {
        return javaType;
    }

    public void setJavaType(String javaType) {
        this.javaType = javaType;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Boolean getNullAble() {
        return nullAble;
    }

    public void setNullAble(Boolean nullAble) {
        this.nullAble = nullAble;
    }

    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    public Boolean getEnums() {
        return enums;
    }

    public void setEnums(Boolean enums) {
        this.enums = enums;
    }

    public String getEnumsConst() {
        return enumsConst;
    }

    public void setEnumsConst(String enumsConst) {
        this.enumsConst = enumsConst;
    }

    @Override
    public String toString() {
        return "Field{" +
                "name='" + name + '\'' +
                ", nameHump='" + nameHump + '\'' +
                ", nameBigHump='" + nameBigHump + '\'' +
                ", nameCn='" + nameCn + '\'' +
                ", type='" + type + '\'' +
                ", javaType='" + javaType + '\'' +
                ", comment='" + comment + '\'' +
                ", nullAble=" + nullAble +
                ", length=" + length +
                ", enums=" + enums +
                ", enumsConst='" + enumsConst + '\'' +
                '}';
    }
}
